/**
 * @Author DengJia
 * @Date 2021/8/4 21:04
 * @Description
 */

public class OperatorDemo {
    public static void main(String[] args) {
        double d1 = 0.7, d2 = 0.4;
        float f1 = 0.7f, f2 = 0.4f;

        System.out.println(Math.round(d1));
        System.out.println(Math.round(d2));
        System.out.println(Math.round(f1));
        System.out.println(Math.round(f2));

        System.out.println(Math.round(0.5));

        boolean b1 = true;
        boolean b2 = true;
        if (b1 = b2) {
            System.out.println("compound assignment");
        }
    }
}
